﻿@using Resources;
@{
    Layout = "~/Views/Shared/Layaout/convocatoria/_LayoutConvocatoriaV2.cshtml";
}
<script type="text/javascript">
    $(function () {
        setAutoAyudaEmpresa("#nIdePersona1", "#nIdeCodPaisDoc1", "#nIdeTipoDocum1", "#vNumDocum1", "#vNombresPersona1", "/AutoAyuda/ListaPersonaAuto", "1");
        setAutoAyudaEmpresa("#nIdePersona1", "#nIdeCodPaisDoc1", "#nIdeTipoDocum1", "#vNombresPersona1", "#vNumDocum1", "/AutoAyuda/ListaPersonaAuto", "2");
        inicioPopPupModal("#detalle2", 500, 850, "LISTADO DE PERSONAS ENCONTRADAS");
    });
</script>
<script type="text/javascript" src="@Url.Content(@properties.mantePersonaJS)"></script>
<script type="text/javascript" src="@Url.Content(@properties.encuestaJS)" ></script>
<input type="hidden" id="ideEmpresa" />
<span id="botonClic"></span>
<span onclick="javascript:listaConcocatoriaById('#divDetalle');" id="spConvocatoria"></span> 
<div id="tituloOpcion">@ViewBag.TITULO</div>
<div id="divCabeceraInterno">
    <table style="width:800px;" class="tblCab" border="1">
        <thead>        
        <tr>
            <th>País Emisor<span class="asterisco">(*)</span></th>
            <th>Tipo documento<span class="asterisco">(*)</span></th>
            <th>Número documento<span class="asterisco">(*)</span></th>
            <th>Nombre de la Persona Encuestada<span class="asterisco">(*)</span></th>
            <th><input type="button" value="Consultar" onclick="javascript: listarMisEncuestasDet('#divDetalle');" /></th>
        </tr>
        </thead>
        <tr>
            <td>@Html.DropDownList("nIdeCodPaisDoc1", (IEnumerable<SelectListItem>)ViewBag.PaisEmisor)</td>
            <td>@Html.DropDownList("nIdeTipoDocum1", (IEnumerable<SelectListItem>)ViewBag.TipoDocIdent, "--Seleccione--")</td>
            <td>@Html.TextBox("vNumDocum1", null, new { style = "width:80px;", maxlength = 10 })</td>
            <td>@Html.TextBox("vNombresPersona1", null, new { style = "width:400px;", maxlength = 120, onblur = "javascript:checkEncuestaLLenaByPersona(this);" })
                <img src="@Url.Content("~/images/buscar.gif")" class="lupita2" alt="CONSULTAR PERSONA" onclick="javascript:buscarPersonaMante('#detalle2','1');"/><input type="hidden" id="nIdePersona1" />
            </td>
            <td>&nbsp;</td>
        </tr>
    </table>    
</div>
<div id="divDetalle"></div>
<div id="detalle2"></div>